----------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  D:\Vicard\VV\re\inprogress\BRV\results\Table2.log
  log type:  text
 opened on:  29 Sep 2017, 17:08:00

. 
. **************
. * A - Table 2*
. **************
. 
. use $Output\dataset_brv_fe, clear

. global condition  "entry_ele!=1994 & entry_ele!=1995"

. 
. foreach def in ele1{
  2. 
.         foreach var in diff {
  3. 
.                 eststo: reg dprior `var' age_`def'                                         if $condition, r cluster(i)
  4.                 eststo: reg dprior `var' age_`def' `var'_`def' if $condition, r cluster(i)
  5.                 eststo: reg dprior `var' age_`def' `var'_`def' if $condition, vce(bootstrap) 
  6.                 eststo: reg dprior `var'_`def'_* `def'_*           if $condition, r cluster(i)
  7.                 test diff_ele1_2 = diff_ele1_3 
  8.                 test diff_ele1_3 = diff_ele1_4
  9.                 test diff_ele1_4 = diff_ele1_5
 10.                 test diff_ele1_5 = diff_ele1_6
 11.                 test diff_ele1_6 = diff_ele1_7
 12.                 test diff_ele1_7 = diff_ele1_8
 13.                 test diff_ele1_8 = diff_ele1_9
 14.                 test diff_ele1_9 = diff_ele1_10
 15.                 eststo: reg dprior `var'_`def'_* `def'_*           if $condition, vce(bootstrap) 
 16.                 test diff_ele1_2 = diff_ele1_3 
 17.                 test diff_ele1_3 = diff_ele1_4
 18.                 test diff_ele1_4 = diff_ele1_5
 19.                 test diff_ele1_5 = diff_ele1_6
 20.                 test diff_ele1_6 = diff_ele1_7
 21.                 test diff_ele1_7 = diff_ele1_8
 22.                 test diff_ele1_8 = diff_ele1_9
 23.                 test diff_ele1_9 = diff_ele1_10
 24.                 drop `var'_`def'_10     `def'_10        
 25.                 eststo: reg dprior `var' `var'_`def'_* `def'_*     if $condition, r cluster(i)
 26.                 eststo: reg dprior `var' `var'_`def'_* `def'_*     if $condition, vce(bootstrap) 
 27.                 
.                 set linesize 250
 28.                 esttab, mtitles drop(_cons) b(%5.3f) se(%5.3f) compress r2 starlevels(c 0.1 b 0.05 a 0.01)  se 
 29.                 esttab, mtitles drop(_cons) b(%5.3f) se(%5.3f) r2  starlevels({$^c$} 0.1 {$^b$} 0.05 {$^a$} 0.01) se tex label  title() 
 30.                 eststo clear
 31.         }
 32. }

Linear regression                               Number of obs     =  1,854,141
                                                F(2, 45452)       =    2917.29
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0365
                                                Root MSE          =     1.1776

                                 (Std. Err. adjusted for 45,453 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        diff |   .0643272    .001072    60.01   0.000     .0622261    .0664282
    age_ele1 |  -.0329132   .0007089   -46.43   0.000    -.0343028   -.0315237
       _cons |   .1483632   .0025485    58.22   0.000     .1433681    .1533583
------------------------------------------------------------------------------
(est1 stored)

Linear regression                               Number of obs     =  1,854,141
                                                F(3, 45452)       =    2170.67
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0367
                                                Root MSE          =     1.1775

                                 (Std. Err. adjusted for 45,453 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        diff |   .0743521   .0013847    53.69   0.000      .071638    .0770661
    age_ele1 |  -.0332532   .0006968   -47.73   0.000    -.0346189   -.0318876
   diff_ele1 |  -.0030511   .0003482    -8.76   0.000    -.0037336   -.0023687
       _cons |   .1491769   .0025237    59.11   0.000     .1442304    .1541235
------------------------------------------------------------------------------
(est2 stored)
(running regress on estimation sample)

Bootstrap replications (50)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50

Linear regression                               Number of obs     =  1,854,141
                                                Replications      =         50
                                                Wald chi2(3)      =   31665.38
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.0367
                                                Adj R-squared     =     0.0367
                                                Root MSE          =     1.1775

------------------------------------------------------------------------------
             |   Observed   Bootstrap                         Normal-based
      dprior |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        diff |   .0743521   .0006824   108.96   0.000     .0730146    .0756895
    age_ele1 |  -.0332532   .0004405   -75.48   0.000    -.0341167   -.0323898
   diff_ele1 |  -.0030511   .0002001   -15.25   0.000    -.0034434   -.0026589
       _cons |   .1491769   .0018598    80.21   0.000     .1455317    .1528221
------------------------------------------------------------------------------
(est3 stored)
note: diff_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
note: ele1_10 omitted because of collinearity

Linear regression                               Number of obs     =  1,854,141
                                                F(17, 45452)      =     515.76
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0384
                                                Root MSE          =     1.1764

                                 (Std. Err. adjusted for 45,453 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
 diff_ele1_1 |          0  (omitted)
 diff_ele1_2 |   .0687291   .0011262    61.03   0.000     .0665217    .0709365
 diff_ele1_3 |   .0643527   .0011973    53.75   0.000      .062006    .0666994
 diff_ele1_4 |   .0598269   .0015216    39.32   0.000     .0568445    .0628093
 diff_ele1_5 |   .0572417   .0022135    25.86   0.000     .0529032    .0615802
 diff_ele1_6 |   .0583309   .0019922    29.28   0.000     .0544261    .0622358
 diff_ele1_7 |   .0542383   .0023923    22.67   0.000     .0495494    .0589273
 diff_ele1_8 |   .0516461   .0030826    16.75   0.000     .0456042    .0576879
 diff_ele1_9 |   .0524616   .0043339    12.11   0.000     .0439672     .060956
diff_ele1_10 |   .0471969    .006876     6.86   0.000     .0337198    .0606739
      ele1_1 |          0  (omitted)
      ele1_2 |   .1845032   .0111429    16.56   0.000     .1626629    .2063434
      ele1_3 |   .0477635   .0111418     4.29   0.000     .0259254    .0696016
      ele1_4 |   .0254885   .0112856     2.26   0.024     .0033686    .0476084
      ele1_5 |   .0120155   .0115766     1.04   0.299    -.0106749    .0347058
      ele1_6 |   .0109403   .0119812     0.91   0.361    -.0125431    .0344236
      ele1_7 |   .0142308   .0120903     1.18   0.239    -.0094664    .0379281
      ele1_8 |   .0085585   .0117872     0.73   0.468    -.0145445    .0316615
      ele1_9 |   .0220014   .0147605     1.49   0.136    -.0069294    .0509322
     ele1_10 |          0  (omitted)
       _cons |  -.0587321   .0110108    -5.33   0.000    -.0803135   -.0371507
------------------------------------------------------------------------------
(est4 stored)

 ( 1)  diff_ele1_2 - diff_ele1_3 = 0

       F(  1, 45452) =   16.77
            Prob > F =    0.0000

 ( 1)  diff_ele1_3 - diff_ele1_4 = 0

       F(  1, 45452) =   10.48
            Prob > F =    0.0012

 ( 1)  diff_ele1_4 - diff_ele1_5 = 0

       F(  1, 45452) =    1.50
            Prob > F =    0.2202

 ( 1)  diff_ele1_5 - diff_ele1_6 = 0

       F(  1, 45452) =    0.18
            Prob > F =    0.6750

 ( 1)  diff_ele1_6 - diff_ele1_7 = 0

       F(  1, 45452) =    2.49
            Prob > F =    0.1148

 ( 1)  diff_ele1_7 - diff_ele1_8 = 0

       F(  1, 45452) =    0.80
            Prob > F =    0.3719

 ( 1)  diff_ele1_8 - diff_ele1_9 = 0

       F(  1, 45452) =    0.04
            Prob > F =    0.8335

 ( 1)  diff_ele1_9 - diff_ele1_10 = 0

       F(  1, 45452) =    0.79
            Prob > F =    0.3736
note: diff_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
note: ele1_10 omitted because of collinearity
(running regress on estimation sample)

Bootstrap replications (50)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50

Linear regression                               Number of obs     =  1,854,141
                                                Replications      =         50
                                                Wald chi2(17)     =   36036.42
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.0384
                                                Adj R-squared     =     0.0384
                                                Root MSE          =     1.1764

------------------------------------------------------------------------------
             |   Observed   Bootstrap                         Normal-based
      dprior |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
 diff_ele1_1 |          0  (omitted)
 diff_ele1_2 |   .0687291    .000714    96.25   0.000     .0673296    .0701286
 diff_ele1_3 |   .0643527   .0008742    73.61   0.000     .0626392    .0660661
 diff_ele1_4 |   .0598269   .0009789    61.12   0.000     .0579084    .0617454
 diff_ele1_5 |   .0572417   .0016942    33.79   0.000     .0539211    .0605622
 diff_ele1_6 |   .0583309   .0015396    37.89   0.000     .0553134    .0613484
 diff_ele1_7 |   .0542383   .0017308    31.34   0.000      .050846    .0576307
 diff_ele1_8 |   .0516461   .0024058    21.47   0.000     .0469307    .0563614
 diff_ele1_9 |   .0524616   .0034243    15.32   0.000     .0457502    .0591731
diff_ele1_10 |   .0471969   .0051278     9.20   0.000     .0371466    .0572471
      ele1_1 |          0  (omitted)
      ele1_2 |   .1845032   .0093417    19.75   0.000     .1661938    .2028125
      ele1_3 |   .0477635   .0093852     5.09   0.000     .0293689    .0661581
      ele1_4 |   .0254885   .0094014     2.71   0.007      .007062     .043915
      ele1_5 |   .0120155   .0099145     1.21   0.226    -.0074166    .0314475
      ele1_6 |   .0109403   .0107465     1.02   0.309    -.0101226    .0320031
      ele1_7 |   .0142308   .0107354     1.33   0.185    -.0068103    .0352719
      ele1_8 |   .0085585   .0106338     0.80   0.421    -.0122834    .0294005
      ele1_9 |   .0220014   .0124565     1.77   0.077    -.0024129    .0464157
     ele1_10 |          0  (omitted)
       _cons |  -.0587321   .0091291    -6.43   0.000    -.0766248   -.0408393
------------------------------------------------------------------------------
(est5 stored)

 ( 1)  diff_ele1_2 - diff_ele1_3 = 0

           chi2(  1) =   15.16
         Prob > chi2 =    0.0001

 ( 1)  diff_ele1_3 - diff_ele1_4 = 0

           chi2(  1) =   11.86
         Prob > chi2 =    0.0006

 ( 1)  diff_ele1_4 - diff_ele1_5 = 0

           chi2(  1) =    2.03
         Prob > chi2 =    0.1538

 ( 1)  diff_ele1_5 - diff_ele1_6 = 0

           chi2(  1) =    0.23
         Prob > chi2 =    0.6305

 ( 1)  diff_ele1_6 - diff_ele1_7 = 0

           chi2(  1) =    3.07
         Prob > chi2 =    0.0796

 ( 1)  diff_ele1_7 - diff_ele1_8 = 0

           chi2(  1) =    0.63
         Prob > chi2 =    0.4283

 ( 1)  diff_ele1_8 - diff_ele1_9 = 0

           chi2(  1) =    0.04
         Prob > chi2 =    0.8352

 ( 1)  diff_ele1_9 - diff_ele1_10 = 0

           chi2(  1) =    0.72
         Prob > chi2 =    0.3948
note: diff_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity

Linear regression                               Number of obs     =  1,854,141
                                                F(17, 45452)      =     515.76
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0384
                                                Root MSE          =     1.1764

                                 (Std. Err. adjusted for 45,453 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        diff |   .0471969    .006876     6.86   0.000     .0337198    .0606739
 diff_ele1_1 |          0  (omitted)
 diff_ele1_2 |   .0215323   .0067576     3.19   0.001     .0082872    .0347773
 diff_ele1_3 |   .0171558    .006783     2.53   0.011     .0038611    .0304505
 diff_ele1_4 |   .0126301   .0066496     1.90   0.058    -.0004033    .0256634
 diff_ele1_5 |   .0100448   .0065237     1.54   0.124    -.0027417    .0228314
 diff_ele1_6 |   .0111341   .0069138     1.61   0.107    -.0024171    .0246852
 diff_ele1_7 |   .0070415   .0063824     1.10   0.270    -.0054681     .019551
 diff_ele1_8 |   .0044492   .0059517     0.75   0.455    -.0072162    .0161145
 diff_ele1_9 |   .0052647   .0059172     0.89   0.374     -.006333    .0168625
      ele1_1 |          0  (omitted)
      ele1_2 |   .1845032   .0111429    16.56   0.000     .1626629    .2063434
      ele1_3 |   .0477635   .0111418     4.29   0.000     .0259254    .0696016
      ele1_4 |   .0254885   .0112856     2.26   0.024     .0033686    .0476084
      ele1_5 |   .0120155   .0115766     1.04   0.299    -.0106749    .0347058
      ele1_6 |   .0109403   .0119812     0.91   0.361    -.0125431    .0344236
      ele1_7 |   .0142308   .0120903     1.18   0.239    -.0094664    .0379281
      ele1_8 |   .0085585   .0117872     0.73   0.468    -.0145445    .0316615
      ele1_9 |   .0220014   .0147605     1.49   0.136    -.0069294    .0509322
       _cons |  -.0587321   .0110108    -5.33   0.000    -.0803135   -.0371507
------------------------------------------------------------------------------
(est6 stored)
note: diff_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
(running regress on estimation sample)

Bootstrap replications (50)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50

Linear regression                               Number of obs     =  1,854,141
                                                Replications      =         50
                                                Wald chi2(17)     =   75192.86
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.0384
                                                Adj R-squared     =     0.0384
                                                Root MSE          =     1.1764

------------------------------------------------------------------------------
             |   Observed   Bootstrap                         Normal-based
      dprior |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        diff |   .0471969   .0047112    10.02   0.000      .037963    .0564307
 diff_ele1_1 |          0  (omitted)
 diff_ele1_2 |   .0215323   .0048927     4.40   0.000     .0119428    .0311217
 diff_ele1_3 |   .0171558   .0048851     3.51   0.000     .0075812    .0267304
 diff_ele1_4 |   .0126301   .0049568     2.55   0.011     .0029149    .0223452
 diff_ele1_5 |   .0100448   .0049846     2.02   0.044     .0002752    .0198145
 diff_ele1_6 |   .0111341   .0050729     2.19   0.028     .0011913    .0210768
 diff_ele1_7 |   .0070415     .00481     1.46   0.143    -.0023859    .0164688
 diff_ele1_8 |   .0044492   .0050019     0.89   0.374    -.0053544    .0142527
 diff_ele1_9 |   .0052647   .0052145     1.01   0.313    -.0049555     .015485
      ele1_1 |          0  (omitted)
      ele1_2 |   .1845032   .0082603    22.34   0.000     .1683132    .2006931
      ele1_3 |   .0477635   .0088385     5.40   0.000     .0304403    .0650867
      ele1_4 |   .0254885   .0086101     2.96   0.003      .008613     .042364
      ele1_5 |   .0120155   .0088928     1.35   0.177     -.005414     .029445
      ele1_6 |   .0109403    .008514     1.28   0.199    -.0057469    .0276275
      ele1_7 |   .0142308   .0096432     1.48   0.140    -.0046696    .0331312
      ele1_8 |   .0085585   .0104534     0.82   0.413    -.0119298    .0290469
      ele1_9 |   .0220014   .0117696     1.87   0.062    -.0010667    .0450695
       _cons |  -.0587321   .0084206    -6.97   0.000    -.0752361    -.042228
------------------------------------------------------------------------------
(est7 stored)

---------------------------------------------------------------------------------------
                 (1)        (2)        (3)        (4)        (5)        (6)        (7) 
                est1       est2       est3       est4       est5       est6       est7 
---------------------------------------------------------------------------------------
diff           0.064a     0.074a     0.074a                           0.047a     0.047a
             (0.001)    (0.001)    (0.001)                          (0.007)    (0.005) 

age_ele1      -0.033a    -0.033a    -0.033a                                            
             (0.001)    (0.001)    (0.000)                                             

diff_ele1                -0.003a    -0.003a                                            
                        (0.000)    (0.000)                                             

diff_el~_1                                      0.000      0.000      0.000      0.000 
                                                  (.)    (0.000)        (.)    (0.000) 

diff_ele~2                                      0.069a     0.069a     0.022a     0.022a
                                              (0.001)    (0.001)    (0.007)    (0.005) 

diff_ele~3                                      0.064a     0.064a     0.017b     0.017a
                                              (0.001)    (0.001)    (0.007)    (0.005) 

diff_ele~4                                      0.060a     0.060a     0.013c     0.013b
                                              (0.002)    (0.001)    (0.007)    (0.005) 

diff_ele~5                                      0.057a     0.057a     0.010      0.010b
                                              (0.002)    (0.002)    (0.007)    (0.005) 

diff_ele~6                                      0.058a     0.058a     0.011      0.011b
                                              (0.002)    (0.002)    (0.007)    (0.005) 

diff_ele~7                                      0.054a     0.054a     0.007      0.007 
                                              (0.002)    (0.002)    (0.006)    (0.005) 

diff_ele~8                                      0.052a     0.052a     0.004      0.004 
                                              (0.003)    (0.002)    (0.006)    (0.005) 

diff_ele~9                                      0.052a     0.052a     0.005      0.005 
                                              (0.004)    (0.003)    (0.006)    (0.005) 

diff_el~10                                      0.047a     0.047a                      
                                              (0.007)    (0.005)                       

ele1_1                                          0.000      0.000      0.000      0.000 
                                                  (.)    (0.000)        (.)    (0.000) 

ele1_2                                          0.185a     0.185a     0.185a     0.185a
                                              (0.011)    (0.009)    (0.011)    (0.008) 

ele1_3                                          0.048a     0.048a     0.048a     0.048a
                                              (0.011)    (0.009)    (0.011)    (0.009) 

ele1_4                                          0.025b     0.025a     0.025b     0.025a
                                              (0.011)    (0.009)    (0.011)    (0.009) 

ele1_5                                          0.012      0.012      0.012      0.012 
                                              (0.012)    (0.010)    (0.012)    (0.009) 

ele1_6                                          0.011      0.011      0.011      0.011 
                                              (0.012)    (0.011)    (0.012)    (0.009) 

ele1_7                                          0.014      0.014      0.014      0.014 
                                              (0.012)    (0.011)    (0.012)    (0.010) 

ele1_8                                          0.009      0.009      0.009      0.009 
                                              (0.012)    (0.011)    (0.012)    (0.010) 

ele1_9                                          0.022      0.022c     0.022      0.022c
                                              (0.015)    (0.012)    (0.015)    (0.012) 

ele1_10                                         0.000      0.000                       
                                                  (.)    (0.000)                       
---------------------------------------------------------------------------------------
N            1854141    1854141    1854141    1854141    1854141    1854141    1854141 
R-sq           0.036      0.037      0.037      0.038      0.038      0.038      0.038 
---------------------------------------------------------------------------------------
Standard errors in parentheses
c p<0.1, b p<0.05, a p<0.01

{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{7}{c}}
\hline\hline
                    &\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}&\multicolumn{1}{c}{(5)}&\multicolumn{1}{c}{(6)}&\multicolumn{1}{c}{(7)}\\
                    &\multicolumn{1}{c}{est1}&\multicolumn{1}{c}{est2}&\multicolumn{1}{c}{est3}&\multicolumn{1}{c}{est4}&\multicolumn{1}{c}{est5}&\multicolumn{1}{c}{est6}&\multicolumn{1}{c}{est7}\\
\hline
$\widehat{a}\_{ijkt}-\varepsilon^q\_{ijk,t-1}$&       0.064{$^a$}&       0.074{$^a$}&       0.074{$^a$}&                  &                  &       0.047{$^a$}&       0.047{$^a$}\\
                    &     (0.001)      &     (0.001)      &     (0.001)      &                  &                  &     (0.007)      &     (0.005)      \\
[1em]
Age$ \_{ijkt}$       &      -0.033{$^a$}&      -0.033{$^a$}&      -0.033{$^a$}&                  &                  &                  &                  \\
                    &     (0.001)      &     (0.001)      &     (0.000)      &                  &                  &                  &                  \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}$&                  &      -0.003{$^a$}&      -0.003{$^a$}&                  &                  &                  &                  \\
                    &                  &     (0.000)      &     (0.000)      &                  &                  &                  &                  \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=1$&                  &                  &                  &       0.000      &       0.000      &       0.000      &       0.000      \\
                    &                  &                  &                  &         (.)      &     (0.000)      &         (.)      &     (0.000)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=2$&                  &                  &                  &       0.069{$^a$}&       0.069{$^a$}&       0.022{$^a$}&       0.022{$^a$}\\
                    &                  &                  &                  &     (0.001)      &     (0.001)      &     (0.007)      &     (0.005)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=3$&                  &                  &                  &       0.064{$^a$}&       0.064{$^a$}&       0.017{$^b$}&       0.017{$^a$}\\
                    &                  &                  &                  &     (0.001)      &     (0.001)      &     (0.007)      &     (0.005)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=4$&                  &                  &                  &       0.060{$^a$}&       0.060{$^a$}&       0.013{$^c$}&       0.013{$^b$}\\
                    &                  &                  &                  &     (0.002)      &     (0.001)      &     (0.007)      &     (0.005)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=5$&                  &                  &                  &       0.057{$^a$}&       0.057{$^a$}&       0.010      &       0.010{$^b$}\\
                    &                  &                  &                  &     (0.002)      &     (0.002)      &     (0.007)      &     (0.005)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=6$&                  &                  &                  &       0.058{$^a$}&       0.058{$^a$}&       0.011      &       0.011{$^b$}\\
                    &                  &                  &                  &     (0.002)      &     (0.002)      &     (0.007)      &     (0.005)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=7$&                  &                  &                  &       0.054{$^a$}&       0.054{$^a$}&       0.007      &       0.007      \\
                    &                  &                  &                  &     (0.002)      &     (0.002)      &     (0.006)      &     (0.005)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=8$&                  &                  &                  &       0.052{$^a$}&       0.052{$^a$}&       0.004      &       0.004      \\
                    &                  &                  &                  &     (0.003)      &     (0.002)      &     (0.006)      &     (0.005)      \\
[1em]
\hspace{1cm} $\times$ Age$ \_{ijkt}=9$&                  &                  &                  &       0.052{$^a$}&       0.052{$^a$}&       0.005      &       0.005      \\
                    &                  &                  &                  &     (0.004)      &     (0.003)      &     (0.006)      &     (0.005)      \\
[1em]
diff\_ele1\_10        &                  &                  &                  &       0.047{$^a$}&       0.047{$^a$}&                  &                  \\
                    &                  &                  &                  &     (0.007)      &     (0.005)      &                  &                  \\
[1em]
Age dummy, 1 years  &                  &                  &                  &       0.000      &       0.000      &       0.000      &       0.000      \\
                    &                  &                  &                  &         (.)      &     (0.000)      &         (.)      &     (0.000)      \\
[1em]
Age dummy, 2 years  &                  &                  &                  &       0.185{$^a$}&       0.185{$^a$}&       0.185{$^a$}&       0.185{$^a$}\\
                    &                  &                  &                  &     (0.011)      &     (0.009)      &     (0.011)      &     (0.008)      \\
[1em]
Age dummy, 3 years  &                  &                  &                  &       0.048{$^a$}&       0.048{$^a$}&       0.048{$^a$}&       0.048{$^a$}\\
                    &                  &                  &                  &     (0.011)      &     (0.009)      &     (0.011)      &     (0.009)      \\
[1em]
Age dummy, 4 years  &                  &                  &                  &       0.025{$^b$}&       0.025{$^a$}&       0.025{$^b$}&       0.025{$^a$}\\
                    &                  &                  &                  &     (0.011)      &     (0.009)      &     (0.011)      &     (0.009)      \\
[1em]
Age dummy, 5 years  &                  &                  &                  &       0.012      &       0.012      &       0.012      &       0.012      \\
                    &                  &                  &                  &     (0.012)      &     (0.010)      &     (0.012)      &     (0.009)      \\
[1em]
Age dummy, 6 years  &                  &                  &                  &       0.011      &       0.011      &       0.011      &       0.011      \\
                    &                  &                  &                  &     (0.012)      &     (0.011)      &     (0.012)      &     (0.009)      \\
[1em]
Age dummy, 7 years  &                  &                  &                  &       0.014      &       0.014      &       0.014      &       0.014      \\
                    &                  &                  &                  &     (0.012)      &     (0.011)      &     (0.012)      &     (0.010)      \\
[1em]
Age dummy, 8 years  &                  &                  &                  &       0.009      &       0.009      &       0.009      &       0.009      \\
                    &                  &                  &                  &     (0.012)      &     (0.011)      &     (0.012)      &     (0.010)      \\
[1em]
Age dummy, 9 years  &                  &                  &                  &       0.022      &       0.022{$^c$}&       0.022      &       0.022{$^c$}\\
                    &                  &                  &                  &     (0.015)      &     (0.012)      &     (0.015)      &     (0.012)      \\
[1em]
ele1\_10             &                  &                  &                  &       0.000      &       0.000      &                  &                  \\
                    &                  &                  &                  &         (.)      &     (0.000)      &                  &                  \\
\hline
Observations        &     1854141      &     1854141      &     1854141      &     1854141      &     1854141      &     1854141      &     1854141      \\
\(R^{2}\)           &       0.036      &       0.037      &       0.037      &       0.038      &       0.038      &       0.038      &       0.038      \\
\hline\hline
\multicolumn{8}{l}{\footnotesize Standard errors in parentheses}\\
\multicolumn{8}{l}{\footnotesize {$^c$} p<0.1, {$^b$} p<0.05, {$^a$} p<0.01}\\
\end{tabular}
}

. 
. 
. **********************************
. * B - Figure A.3 (web appendix)  *
. **********************************
. *
. use $Output\dataset_brv_fe, clear

. global condition  "entry_ele!=1994 & entry_ele!=1995"

. *
. reg dprior diff_ele1_* ele1_*  if $condition, r cluster(i)
note: diff_ele1_1 omitted because of collinearity
note: ele1_1 omitted because of collinearity
note: ele1_10 omitted because of collinearity

Linear regression                               Number of obs     =  1,854,141
                                                F(17, 45452)      =     515.76
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0384
                                                Root MSE          =     1.1764

                                 (Std. Err. adjusted for 45,453 clusters in i)
------------------------------------------------------------------------------
             |               Robust
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
 diff_ele1_1 |          0  (omitted)
 diff_ele1_2 |   .0687291   .0011262    61.03   0.000     .0665217    .0709365
 diff_ele1_3 |   .0643527   .0011973    53.75   0.000      .062006    .0666994
 diff_ele1_4 |   .0598269   .0015216    39.32   0.000     .0568445    .0628093
 diff_ele1_5 |   .0572417   .0022135    25.86   0.000     .0529032    .0615802
 diff_ele1_6 |   .0583309   .0019922    29.28   0.000     .0544261    .0622358
 diff_ele1_7 |   .0542383   .0023923    22.67   0.000     .0495494    .0589273
 diff_ele1_8 |   .0516461   .0030826    16.75   0.000     .0456042    .0576879
 diff_ele1_9 |   .0524616   .0043339    12.11   0.000     .0439672     .060956
diff_ele1_10 |   .0471969    .006876     6.86   0.000     .0337198    .0606739
      ele1_1 |          0  (omitted)
      ele1_2 |   .1845032   .0111429    16.56   0.000     .1626629    .2063434
      ele1_3 |   .0477635   .0111418     4.29   0.000     .0259254    .0696016
      ele1_4 |   .0254885   .0112856     2.26   0.024     .0033686    .0476084
      ele1_5 |   .0120155   .0115766     1.04   0.299    -.0106749    .0347058
      ele1_6 |   .0109403   .0119812     0.91   0.361    -.0125431    .0344236
      ele1_7 |   .0142308   .0120903     1.18   0.239    -.0094664    .0379281
      ele1_8 |   .0085585   .0117872     0.73   0.468    -.0145445    .0316615
      ele1_9 |   .0220014   .0147605     1.49   0.136    -.0069294    .0509322
     ele1_10 |          0  (omitted)
       _cons |  -.0587321   .0110108    -5.33   0.000    -.0803135   -.0371507
------------------------------------------------------------------------------

. *
. forvalues x=2(1)10{
  2. lincom diff_ele1_`x'
  3. g beta_age_`x' = r(estimate) 
  4. g se_age_`x'   = r(se) 
  5. }

 ( 1)  diff_ele1_2 = 0

------------------------------------------------------------------------------
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0687291   .0011262    61.03   0.000     .0665217    .0709365
------------------------------------------------------------------------------

 ( 1)  diff_ele1_3 = 0

------------------------------------------------------------------------------
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0643527   .0011973    53.75   0.000      .062006    .0666994
------------------------------------------------------------------------------

 ( 1)  diff_ele1_4 = 0

------------------------------------------------------------------------------
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0598269   .0015216    39.32   0.000     .0568445    .0628093
------------------------------------------------------------------------------

 ( 1)  diff_ele1_5 = 0

------------------------------------------------------------------------------
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0572417   .0022135    25.86   0.000     .0529032    .0615802
------------------------------------------------------------------------------

 ( 1)  diff_ele1_6 = 0

------------------------------------------------------------------------------
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0583309   .0019922    29.28   0.000     .0544261    .0622358
------------------------------------------------------------------------------

 ( 1)  diff_ele1_7 = 0

------------------------------------------------------------------------------
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0542383   .0023923    22.67   0.000     .0495494    .0589273
------------------------------------------------------------------------------

 ( 1)  diff_ele1_8 = 0

------------------------------------------------------------------------------
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0516461   .0030826    16.75   0.000     .0456042    .0576879
------------------------------------------------------------------------------

 ( 1)  diff_ele1_9 = 0

------------------------------------------------------------------------------
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0524616   .0043339    12.11   0.000     .0439672     .060956
------------------------------------------------------------------------------

 ( 1)  diff_ele1_10 = 0

------------------------------------------------------------------------------
      dprior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         (1) |   .0471969    .006876     6.86   0.000     .0337198    .0606739
------------------------------------------------------------------------------

. keep if _n == 1
(7,075,376 observations deleted)

. collapse (max) beta_age_* se_age_*, by(age_ele1)

. 
. g obs = 1

. reshape long beta_age_  se_age_ , i(obs) j(experience)
(note: j = 2 3 4 5 6 7 8 9 10)

Data                               wide   ->   long
-----------------------------------------------------------------------------
Number of obs.                        1   ->       9
Number of variables                  20   ->       5
j variable (9 values)                     ->   experience
xij variables:
  beta_age_2 beta_age_3 ... beta_age_10   ->   beta_age_
        se_age_2 se_age_3 ... se_age_10   ->   se_age_
-----------------------------------------------------------------------------

. drop age_ele1

. rename  beta_age_  beta_age

. rename  se_age_    se_age

. *
. g beta_age_min = beta_age-1.96*se_age

. g beta_age_max = beta_age+1.96*se_age

. *
. g zero = 0

. local zero = 0 

. *
. global bandwidth = 0.66

. gen beta_bench = 0

. local beta_bench = beta_bench

. 
. label define experience 2 "2" 3 "3" 4 "4" 5 "5" 6 "6" 7 "7" 8 "8" 9 "9" 10 "10"

. label values experience experience

. label list
experience:
           2 2
           3 3
           4 4
           5 5
           6 6
           7 7
           8 8
           9 9
          10 10

. *
. twoway rarea beta_age_min beta_age_max experience,  fintensity(inten30) bsty(ci) sort  xlabel(2 3 4 5 6 7 8 9 10,  valuelabel) ///
> || scatter beta_age experience, scheme(s2color) c(l) xtitle("# years since last entry") ///
> title("Belief updating", pos(11) ring(0) size(medium)) legend(off) bgcolor(white) graphregion(color(white)) ysize(4) xsize(4) scale(0.8)

. graph export $results\Figure_A3.eps, as(eps) replace
(note: file results\Figure_A3.eps not found)
(file results\Figure_A3.eps written in EPS format)

. 
. log close
      name:  <unnamed>
       log:  D:\Vicard\VV\re\inprogress\BRV\results\Table2.log
  log type:  text
 closed on:  29 Sep 2017, 17:24:14
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
